/*
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License.
 * The Original Code is Openbravo ERP.
 * The Initial Developer of the Original Code is Openbravo SLU
 * All portions are Copyright (C) 2008-2014 Openbravo SLU
 * All Rights Reserved.
 * Contributor(s):  ______________________________________.
 ************************************************************************
*/
package com.eam.data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.openbravo.base.structure.ActiveEnabled;
import org.openbravo.base.structure.BaseOBObject;
import org.openbravo.base.structure.ClientEnabled;
import org.openbravo.base.structure.OrganizationEnabled;
import org.openbravo.base.structure.Traceable;
import org.openbravo.model.ad.access.User;
import org.openbravo.model.ad.system.Client;
import org.openbravo.model.common.enterprise.Organization;
/**
 * Entity class for entity Eam_Check_Plan (stored in table Eam_Check_Plan).
 *
 * NOTE: This class should not be instantiated directly. To instantiate this
 * class the {@link org.openbravo.base.provider.OBProvider} should be used.
 */
public class EamCheckPlan extends BaseOBObject implements Traceable, ClientEnabled, OrganizationEnabled, ActiveEnabled {
    private static final long serialVersionUID = 1L;
    public static final String TABLE_NAME = "Eam_Check_Plan";
    public static final String ENTITY_NAME = "Eam_Check_Plan";
    public static final String PROPERTY_ID = "id";
    public static final String PROPERTY_EAMFACILITIES = "eamFacilities";
    public static final String PROPERTY_EMESFANCILITIESDCPOINT = "emesFancilitiesDcPoint";
    public static final String PROPERTY_TYPE = "type";
    public static final String PROPERTY_STARTTIME = "startTime";
    public static final String PROPERTY_ENDTIME = "endTime";
    public static final String PROPERTY_STATE = "state";
    public static final String PROPERTY_USER = "user";
    public static final String PROPERTY_DESCRIPTION = "description";
    public static final String PROPERTY_CLIENT = "client";
    public static final String PROPERTY_ORGANIZATION = "organization";
    public static final String PROPERTY_ACTIVE = "active";
    public static final String PROPERTY_CREATIONDATE = "creationDate";
    public static final String PROPERTY_CREATEDBY = "createdBy";
    public static final String PROPERTY_UPDATED = "updated";
    public static final String PROPERTY_UPDATEDBY = "updatedBy";
    public static final String PROPERTY_CODE = "code";
    public static final String PROPERTY_CYCLE = "cycle";
    public static final String PROPERTY_NEXTCYCLETIME = "nextCycleTime";
    public static final String PROPERTY_IMPORTBUTTON = "importButton";
    public static final String PROPERTY_RELATIONBUTTON = "relationButton";
    public static final String PROPERTY_CANCELBUTTON = "cancelButton";
    public static final String PROPERTY_COMPANY = "company";
    public static final String PROPERTY_EAMCHECKPLANFACILITIESLIST = "eamCheckPlanFacilitiesList";
    public static final String PROPERTY_EAMFACILITIESNOTCHECKLIST = "eamFacilitiesNotCheckList";
    public static final String PROPERTY_EAMSPOTCHECKRECORDLIST = "eamSpotCheckRecordList";

    public EamCheckPlan() {
        setDefaultValue(PROPERTY_ACTIVE, true);
        setDefaultValue(PROPERTY_IMPORTBUTTON, false);
        setDefaultValue(PROPERTY_RELATIONBUTTON, false);
        setDefaultValue(PROPERTY_CANCELBUTTON, false);
        setDefaultValue(PROPERTY_EAMCHECKPLANFACILITIESLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EAMFACILITIESNOTCHECKLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EAMSPOTCHECKRECORDLIST, new ArrayList<Object>());
    }

    @Override
    public String getEntityName() {
        return ENTITY_NAME;
    }

    public String getId() {
        return (String) get(PROPERTY_ID);
    }

    public void setId(String id) {
        set(PROPERTY_ID, id);
    }

    public EamFacilities getEamFacilities() {
        return (EamFacilities) get(PROPERTY_EAMFACILITIES);
    }

    public void setEamFacilities(EamFacilities eamFacilities) {
        set(PROPERTY_EAMFACILITIES, eamFacilities);
    }

    public EamFacilitiesDCPoint getEmesFancilitiesDcPoint() {
        return (EamFacilitiesDCPoint) get(PROPERTY_EMESFANCILITIESDCPOINT);
    }

    public void setEmesFancilitiesDcPoint(EamFacilitiesDCPoint emesFancilitiesDcPoint) {
        set(PROPERTY_EMESFANCILITIESDCPOINT, emesFancilitiesDcPoint);
    }

    public String getType() {
        return (String) get(PROPERTY_TYPE);
    }

    public void setType(String type) {
        set(PROPERTY_TYPE, type);
    }

    public Date getStartTime() {
        return (Date) get(PROPERTY_STARTTIME);
    }

    public void setStartTime(Date startTime) {
        set(PROPERTY_STARTTIME, startTime);
    }

    public Date getEndTime() {
        return (Date) get(PROPERTY_ENDTIME);
    }

    public void setEndTime(Date endTime) {
        set(PROPERTY_ENDTIME, endTime);
    }

    public String getState() {
        return (String) get(PROPERTY_STATE);
    }

    public void setState(String state) {
        set(PROPERTY_STATE, state);
    }

    public User getUser() {
        return (User) get(PROPERTY_USER);
    }

    public void setUser(User user) {
        set(PROPERTY_USER, user);
    }

    public String getDescription() {
        return (String) get(PROPERTY_DESCRIPTION);
    }

    public void setDescription(String description) {
        set(PROPERTY_DESCRIPTION, description);
    }

    public Client getClient() {
        return (Client) get(PROPERTY_CLIENT);
    }

    public void setClient(Client client) {
        set(PROPERTY_CLIENT, client);
    }

    public Organization getOrganization() {
        return (Organization) get(PROPERTY_ORGANIZATION);
    }

    public void setOrganization(Organization organization) {
        set(PROPERTY_ORGANIZATION, organization);
    }

    public Boolean isActive() {
        return (Boolean) get(PROPERTY_ACTIVE);
    }

    public void setActive(Boolean active) {
        set(PROPERTY_ACTIVE, active);
    }

    public Date getCreationDate() {
        return (Date) get(PROPERTY_CREATIONDATE);
    }

    public void setCreationDate(Date creationDate) {
        set(PROPERTY_CREATIONDATE, creationDate);
    }

    public User getCreatedBy() {
        return (User) get(PROPERTY_CREATEDBY);
    }

    public void setCreatedBy(User createdBy) {
        set(PROPERTY_CREATEDBY, createdBy);
    }

    public Date getUpdated() {
        return (Date) get(PROPERTY_UPDATED);
    }

    public void setUpdated(Date updated) {
        set(PROPERTY_UPDATED, updated);
    }

    public User getUpdatedBy() {
        return (User) get(PROPERTY_UPDATEDBY);
    }

    public void setUpdatedBy(User updatedBy) {
        set(PROPERTY_UPDATEDBY, updatedBy);
    }

    public String getCode() {
        return (String) get(PROPERTY_CODE);
    }

    public void setCode(String code) {
        set(PROPERTY_CODE, code);
    }

    public BigDecimal getCycle() {
        return (BigDecimal) get(PROPERTY_CYCLE);
    }

    public void setCycle(BigDecimal cycle) {
        set(PROPERTY_CYCLE, cycle);
    }

    public Date getNextCycleTime() {
        return (Date) get(PROPERTY_NEXTCYCLETIME);
    }

    public void setNextCycleTime(Date nextCycleTime) {
        set(PROPERTY_NEXTCYCLETIME, nextCycleTime);
    }

    public Boolean isImportButton() {
        return (Boolean) get(PROPERTY_IMPORTBUTTON);
    }

    public void setImportButton(Boolean importButton) {
        set(PROPERTY_IMPORTBUTTON, importButton);
    }

    public Boolean isRelationButton() {
        return (Boolean) get(PROPERTY_RELATIONBUTTON);
    }

    public void setRelationButton(Boolean relationButton) {
        set(PROPERTY_RELATIONBUTTON, relationButton);
    }

    public Boolean isCancelButton() {
        return (Boolean) get(PROPERTY_CANCELBUTTON);
    }

    public void setCancelButton(Boolean cancelButton) {
        set(PROPERTY_CANCELBUTTON, cancelButton);
    }

    public String getCompany() {
        return (String) get(PROPERTY_COMPANY);
    }

    public void setCompany(String company) {
        set(PROPERTY_COMPANY, company);
    }

    @SuppressWarnings("unchecked")
    public List<EamCheckPlanFacilities> getEamCheckPlanFacilitiesList() {
      return (List<EamCheckPlanFacilities>) get(PROPERTY_EAMCHECKPLANFACILITIESLIST);
    }

    public void setEamCheckPlanFacilitiesList(List<EamCheckPlanFacilities> eamCheckPlanFacilitiesList) {
        set(PROPERTY_EAMCHECKPLANFACILITIESLIST, eamCheckPlanFacilitiesList);
    }

    @SuppressWarnings("unchecked")
    public List<EamFacilitiesNotCheck> getEamFacilitiesNotCheckList() {
      return (List<EamFacilitiesNotCheck>) get(PROPERTY_EAMFACILITIESNOTCHECKLIST);
    }

    public void setEamFacilitiesNotCheckList(List<EamFacilitiesNotCheck> eamFacilitiesNotCheckList) {
        set(PROPERTY_EAMFACILITIESNOTCHECKLIST, eamFacilitiesNotCheckList);
    }

    @SuppressWarnings("unchecked")
    public List<EamSpotCheckRecord> getEamSpotCheckRecordList() {
      return (List<EamSpotCheckRecord>) get(PROPERTY_EAMSPOTCHECKRECORDLIST);
    }

    public void setEamSpotCheckRecordList(List<EamSpotCheckRecord> eamSpotCheckRecordList) {
        set(PROPERTY_EAMSPOTCHECKRECORDLIST, eamSpotCheckRecordList);
    }

}
